package com.legolas.spring.aspectj;

import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2016/11/8 0008
 * Time: 9:45
 */
@Service
public class CustomerBoServiceImpl implements CustomerBoService {

    @Override
    public void addCustomer() {
        System.out.println("addCustomer() is running……");
    }

    @Override
    public void deleteCustomer() {
        System.out.println("deleteCustomer() is running……");
    }

    @Override
    public String addCustomerReturnValue() {
        System.out.println("addCustomerReturnValue() is running……");
        return "abc";
    }

    @Override
    public void addCustomerThrowException() throws Exception {
        System.out.println("addCustomerThrowException() is running ……");
        throw new Exception("generic error");
    }

    @Override
    public void addCustomerAround(String name) {
        System.out.println("addCustomerAround() is running ……");
    }
}
